﻿using Microsoft.AspNetCore.Mvc;
using PLCS.SocialHttpApi.Attributes;
using PLCS.SocialHttpApi.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.AspNetCore.Mvc;

namespace PLCS.SocialHttpApi.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    [ServiceFilter(typeof(LogActionFilter))]
    public class FansToPlcsController : AbpControllerBase
    {
        [HttpPost]
        [Description("当外形检测设备检测完成后，传递检测结果至PLCS")]
        [Requester("Fans")]
        public FansResponseData SendDetectionResultToPLCS(MeasurementData data)
        {
            var apiUuid = data.ApiUuid;
            return new FansResponseData(apiUuid);
        }

        [HttpPost]
        [Description("当外形检测开始检测时，向PLCS确认是否到位。")]
        [Requester("Fans")]
        public FansResponseData StartDetectionConfirmation(DetectionConfirmationParams data)
        {
            var apiUuid = data.ApiUuid;
            var stationNo = data.StationNo;
            return new FansResponseData(apiUuid);
        }
    }
}